package com.microinvest.config;

import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = test.class)
public class test {
    @Autowired
    private RabbitTemplate rabbitTemplate;


    @Test
    void testSend(){
        String queueName="Tianwailaiwu";
        String msg="hello";
        rabbitTemplate.convertAndSend(queueName,msg);
    }




}

